package cn.wolfcode.trip.base.service.impl;

import cn.wolfcode.trip.base.domain.Friend;
import cn.wolfcode.trip.base.domain.Tag;
import cn.wolfcode.trip.base.mapper.FriendMapper;
import cn.wolfcode.trip.base.mapper.TagMapper;
import cn.wolfcode.trip.base.query.FriendQueryObject;
import cn.wolfcode.trip.base.service.IFriendService;
import cn.wolfcode.trip.base.service.ITagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FriendServiceImpl implements IFriendService {
    @Autowired
    private FriendMapper friendMapper;

    /**
     * 获取用户的所有好友
     * @param qo
     * @return
     */
    public List getFriend(FriendQueryObject qo) {
        return friendMapper.selectForListByUser(qo);
    }
}